//
//  PicViewController.m
//  drawHomeWork
//
//  Created by wukeng on 16/4/6.
//  Copyright © 2016年 wukeng. All rights reserved.
//

#import "PicViewController.h"
#import "Pic1ViewController.h"

@interface PicViewController ()


@end

@implementation PicViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}
- (IBAction)btn1Pressed:(id)sender {
    Pic1ViewController *p1 = [[Pic1ViewController alloc] init];
    p1.target = 1;
    
    [self.navigationController pushViewController:p1
                                         animated:YES];
    //[self showViewController:p1 sender:nil];
    
}

- (IBAction)btn2pressed:(id)sender {
    Pic1ViewController *p1 = [[Pic1ViewController alloc] init];
    p1.target = 2;
    [self showViewController:p1 sender:nil];
}

- (IBAction)btn3Pressed:(id)sender {
    Pic1ViewController *p1 = [[Pic1ViewController alloc] init];
    p1.target = 3;
    [self showViewController:p1 sender:nil];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}


@end
